﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace Laugh.Data
{
    public interface ISqlQuery : IDisposable
    {
        ITransaction BeginTransaction();
        ISqlQuery UseDatabase(string key);
        IList Select(string sql);
        int UpdateOrDelete(string sql);
        IList<T> Select<T>(string sql) where T : new();
        T SelectSingle<T>(string sql);
    }
}
